package com.etlmaster.executor.steps.table;

import com.etlmaster.executor.Step;
import com.etlmaster.executor.StepMeta;
import com.etlmaster.executor.annotation.StepInstruction;
import com.etlmaster.executor.processors.Table.DropTableProcessor;

/**
 * @author Wugf
 * @date 2016-03-08
 */
@StepInstruction("dropTable")
public class DropTableStep extends Step {
	
	private DropTableStepMeta meta;
	
	
	public DropTableStep(StepMeta meta) {
		super(meta);
		this.meta=(DropTableStepMeta)meta;
		// TODO Auto-generated constructor stub
	}

	@Override
	protected int handle() {
		DropTableProcessor processor=new DropTableProcessor();
		return processor.process(meta.getDsName(), meta.getTableName(), meta.getVariables());
	}

	@Override
	public boolean stop() {
		// TODO Auto-generated method stub
		return false;
	}
	
	
}
